<?php
/**
*   转盘记录
*/
namespace app\api\model;
use think\Model;

class TurntableRecord extends Model
{
    /**
    * 创建转盘记录
    * @param mid
    */
    public function _create($mid, $result){
        $data = [
            'mid' => $mid,
            'remark' => $result,
            'created' => time(),
        ];
        
        if(!$this->save($data)){
            $this->error = "抽奖记录失败";
            return false;
        }
        return true;
    }
    
   

}